<script lang="ts" setup>
import { flowSummary } from '@/api/main'
import FlowStatOption from '../../options/flow-stat';

//const result  = await flowSummary()


// x轴数据
const xData = $ref(["09/20", "09/21", "09/22", "09/23", "09/24", "09/25", "09/26"])
// 柱状图数据，浏览量|访客数
const data = $ref([18, 30, 60, 70, 20, 60, 10])
const hvData = $ref([28, 34, 66, 80, 70, 40, 20])
// 配置
const option = $ref(FlowStatOption(xData, data, hvData,'black'))


</script>
<template>
    <div style="min-height: 440px;">
        <a-card >
            <div h-90 w-120 flex="~ col" >
                <div p="x-8 t-4" text="#17caf0 5.5" font="bold">流量访问统计</div>
                <EchartsContainer :option="(option)" />
            </div>
        </a-card>
    </div>
</template>
